Pod::Spec.new do |s|
  s.name = "AFNetworking"
  s.version = "3.1.0.1"
  s.summary = "A delightful iOS and OS X networking framework."
  s.license = "MIT"
  s.authors = {"Mattt Thompson"=>"m@mattt.me"}
  s.homepage = "https://github.com/AFNetworking/AFNetworking"
  s.social_media_url = "https://twitter.com/AFNetworking"
  s.requires_arc = true
  s.source   = { :git => 'https://git.oschina.net/ambitious/AFNetworking.git', :tag => s.version, :submodules => true }

  s.ios.deployment_target    = '7.0'
  s.ios.vendored_framework   = 'AFNetworking-3.1.0-rc.1.1/ios/AFNetworking.framework'
  pch_AF = <<-EOS
#ifndef TARGET_OS_IOS
  #define TARGET_OS_IOS TARGET_OS_IPHONE
#endif

#ifndef TARGET_OS_WATCH
  #define TARGET_OS_WATCH 0
#endif

#ifndef TARGET_OS_TV
  #define TARGET_OS_TV 0
#endif
EOS
  s.prefix_header_contents = pch_AF
  s.watchos.frameworks = 'MobileCoreServices', 'CoreGraphics'
  s.ios.frameworks = 'MobileCoreServices', 'CoreGraphics'
  s.osx.frameworks = 'CoreServices'
  s.frameworks = 'Security'
  s.frameworks = 'SystemConfiguration'
  s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO' }

end
